{include file='public/header.html'}

<div class="container blog mtn">

    <div class="panel panel-default">
        <div class="panel-heading">
            <i class="glyphicon glyphicon-flag"></i> 最新文档
        </div>
        <div class="panel-body">
            {foreach $list as $dvo}
            <div class="blog-list">
                <h4>
                    <a href="{:url('doc/read',['id'=>$dvo['id']])}"><i class="glyphicon glyphicon-file"></i> {$dvo.title} - {:echo($book[$dvo['book_id']]['title'])} {if $book[$dvo['book_id']]['is_public']==0:}[VIP]{/if}</a>
                </h4>
                <p>{$dvo.summary|str_substr=70}</p>
                <p>
                    <i class="glyphicon glyphicon-time"></i> {$dvo.update_time|get_time_ago}&nbsp;&nbsp;
                    <a href="{:url('user/info',['id'=>$dvo['user_id']])}"><i class="glyphicon glyphicon-user"></i> {$dvo.user_id|get_nickname}</a>&nbsp;&nbsp;
                    <a href="{:url('doc/down',['id'=>$dvo['id']])}"><i class="glyphicon glyphicon-download-alt"></i> 下载</a>
                </p>
            </div>
            {/foreach}
        </div>
        <div class="panel-footer">{$list->links()}</div>
    </div>

</div>

{include file='public/footer.html'}
</body>
</html>